package com.study.s02.sort;

public class TestSort {
	
	public static void main(String[] args) {
		
		long[] arr = {3,1,2,8,5,4};
		System.out.print("[ ");
		for (long i : arr) {
			System.out.print(i + " ");
		}
		System.out.println("]");
		
		//冒泡排序
		//BubbleSort.sort(arr);
		//选择排序
		//SelectionSort.sort(arr);
		//插入排序
		InsertSort.sort(arr);
		
		System.out.print("[ ");
		for (long i : arr) {
			System.out.print(i + " ");
		}
		System.out.println("]");
	}
}
